<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    /* 我们想页面 一打开，一个盒子就从左边 走到 右边 */
    @keyframes move {
      0% {
        transform: translate(0px);
      }
      100% {
        transform: translate(1000px);
      }
    }
    div {
      height: 200px;
      width: 200px;
      background-color: red;
      animation-name: move;
      animation-duration: 0.4s;
    }
  </style>
</head>
<body>
  <div></div>
</body>
</html>
